package org.jeecg.modules.car.mapper;

import java.util.Collection;
import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.entity.car.CarGate;

/**
 * @Description: 1
 * @Author: jeecg-boot
 * @Date:   2021-05-26
 * @Version: V1.0
 */
public interface CarGateMapper extends BaseMapper<CarGate> {
    @SqlParser(filter = true)
    void saveCarGate(@Param("gateList") List<CarGate> gateList);
    @Select("select out_sys_id  from car_park_info where id =#{parkId}")
    String getOutId(@Param("parkId") String parkId);
    @Select(" select a.* ,cpi.out_sys_id from car_gate a  join  car_park_info cpi on cpi.id = a.park_id where a.park_id =#{parkId}")
    List<CarGate> getByInParkId(@Param("parkId") String parkId);
}
